package com.ccsoft.annoreflect.anno;

import com.ccsoft.annoreflect.OrderPolicy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author chanchaw
 * @create 2022-09-22 8:49
 */
@Target({ElementType.TYPE,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Table {
    public String tableName();// 表名称
    public String orderBy() default "";// 排序字段
    public OrderPolicy orderPolicy() default OrderPolicy.ASC;// 升序、降序
}
